﻿using ZFY.Blog.Api.Model.Enum;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace ZFY.Blog.Api.Model.Dto.ArticleTypeDto
{
    public class CreateArticleTypeInput
    {
        [Required(ErrorMessage ="类型名称不能为空！"),MaxLength(30,ErrorMessage ="长度不能超过30个字符")]
        public string Name { get; set; }
        [Required(ErrorMessage = "图标不能为空！")]
        public IFormFile Image { get; set; }
        [Required(ErrorMessage = "所属目录不能为空！")]
        public MeunEnum? Meun { get; set; }
    }
}
